package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 私信wq
 */
@Getter@Setter@ToString
public class PrivateMessage extends BaseDomain{
    /**
     * 发送人
     */
    private User send;
    /**
     *接受人
     */
    private User receive;
    /**
     * 发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;
    /**
     * 发送内容
     */
    private String content;
    /**
     * 状态0未读
     */
    private Integer sendState;
    /**
     * 1已读
     */

    private Integer receiveState;
    private Integer count;

}